package com.qf.service.impl;

import com.qf.entity.Classsify;
import com.qf.mapper.ClasssifyMapper;
import com.qf.service.ClasssifyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 程云
 * @Date 2019/12/11 14:37
 * 人生在世 代码二字
 */
@Slf4j
@Service
public class ClasssifyServiceImpl implements ClasssifyService {

    @Resource
    private ClasssifyMapper classsifyMapper;

    @Override
    public Classsify InfoById(Integer classifyId) {

        Classsify classsify = classsifyMapper.selectByPrimaryKey(classifyId);
        return classsify;
    }

    public List<Classsify> findAllClass() {
        return classsifyMapper.selectAll();
    }

}